package com.qianbao.service.sms.impl;

import com.qianbao.dao.sms.SVSmsDao;
import com.qianbao.domain.sms.SVSmsEntity;
import com.qianbao.service.sms.SVSmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SVSmsServiceImpl implements SVSmsService {

    @Autowired
    private SVSmsDao dao;


    @Override
    public List<SVSmsEntity> findAll() {
        return dao.findAll();
    }


    @Override
    public int saveSms(SVSmsEntity entity) {
        return dao.saveSms(entity);
    }


    @Override
    public String findCodeByPhone(String phone) {
        return dao.findCodeByPhone(phone);
    }
}
